package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SGuildMap extends Object implements IMessageBase
    {
        public var guildId:int;
        public var guildName:String;
        public var mapId:int;
        public var structures:Dictionary;
        public var needOpenGuildFlame:Boolean;
        public const _type:int = 17;
        public static var _regist:SGuildMap = new SGuildMap(true);

        public function SGuildMap(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SGuildMap();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.guildId);
            param1.writeString(this.guildName);
            param1.writeInt(this.mapId);
            DictIntIntHelper.write(param1, this.structures);
            param1.writeBool(this.needOpenGuildFlame);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.guildId = param1.readInt();
            this.guildName = param1.readString();
            this.mapId = param1.readInt();
            this.structures = DictIntIntHelper.read(param1);
            this.needOpenGuildFlame = param1.readBool();
            
        }

    }
}
